-- GENERATED SPELL FOR [Saltspittle Muckdweller] --


function spell0_3740(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3740', 500, 1)
end

function Sorts_3740(pUnit, Event)
local choix_sorts_3740 = math.random(0, 0)
if choix_sorts_3740 == 0 then
pUnit:RegisterEvent('spell0_3740', 1, 1)
end
end

function mob3740_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3740', math.random(1500, 3000), 1)
end

function mob3740_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3740_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3740_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3740, 1, 'mob3740_Action')
RegisterUnitEvent(3740, 2, 'mob3740_Leave')
RegisterUnitEvent(3740, 3, 'mob3740_Kill')
RegisterUnitEvent(3740, 4, 'mob3740_Die')
